<include file="public@header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:url('Clientele/index')}">资质管理</a></li>
            <li><a href="{:url('Clientele/add')}">资质添加</a></li>
        </ul>
        <form class="well form-inline margin-top-20" method="get" action="{:url('Clientele/index')}">
            资质名称:
            <input type="text" class="form-control" name="post_title" style="width: 120px;" value="{:input('request.post_title/s','')}" placeholder="请输入资质名称">           
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('Clientele/index')}">清空</a>
        </form>
        <form class="js-ajax-form" action="" method="post">
            <div class="table-actions">

                <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                        data-action="{:url('Clientele/listOrder')}">{:lang('SORT')}
                </button>

               
                <button class="btn btn-danger btn-sm js-ajax-submit" type="submit"
                        data-action="{:url('Clientele/delete')}" data-subcheck="true" data-msg="您确定删除吗？">
                    {:lang('DELETE')}
                </button>
            </div>
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
                         <th width="15">
                            <label>
                                <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                            </label>
                        </th>
                         <th width="50">{:lang('SORT')}</th>
                        <th width="50">ID</th>
                        <th>资质名称</th>
                        <th>排序值</th>
                        <!--					<th>{:lang('LAST_LOGIN_IP')}</th>
                                                                <th>{:lang('LAST_LOGIN_TIME')}</th>
                                                                <th>{:lang('EMAIL')}</th>
                                                                <th>{:lang('STATUS')}</th>-->
                        <th>创建时间</th>
                        <th width="140">{:lang('ACTIONS')}</th>
                    </tr>
                </thead>
                <tbody>

                <foreach name="users" item="vo">
                    <tr>
                        <td>
                        <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                               value="{$vo.id}" title="ID:{$vo.id}">
                    </td>
                     <td>
                            <input name="list_orders[{$vo.id}]" class="input-order" type="text"
                                   value="{$vo.list_order}">
                        </td>
                        <td>{$vo.id}</td>
                        <td>{$vo.post_title}</td>
                        <td>{$vo.list_order}</td>
                        <td>
                            {:date('Y-m-d H:i:s',$vo['create_time'])}
                        </td>
                        <td>
                            <a class="btn btn-xs btn-primary" href='{:url("Clientele/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
                            <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Clientele/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>						
                        </td>
                    </tr>
                </foreach>
                </tbody>
            </table>
            <div class="table-actions">
                
                <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                        data-action="{:url('Clientele/listOrder')}">{:lang('SORT')}
                </button>

                
                <button class="btn btn-danger btn-sm js-ajax-submit" type="submit"
                        data-action="{:url('Clientele/delete')}" data-subcheck="true" data-msg="您确定删除吗？">
                    {:lang('DELETE')}
                </button>
            </div>
            <div class="pagination">{$page}</div>

        </form>
    </div>
    <script src="__STATIC__/js/admin.js"></script>
</body>
</html>